home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
graphics
/
containr
/
readme.txt
< prev
Wrap
Text File
|
1994-12-24
|
3KB
|
71 lines
CONTAINER VBX - A VBX FOR STORING AND RETRIEVING BITMAPS IN VB PROGRAMS
This VBX is an attempt to make it easier for VB programmer to use bitmaps
in their programs without having to deliver all these files separately
with your program or use a dummy form with a lot of image controls on it
(that's a real memory consumer and loading such a form is terribly slow).
The container VBX is nothing more than the name says: it's a container
of pictures. Using the VBX involves the following steps:
1. Start the RC-EDIT program. This program allows you to specify the
bitmaps (.BMP or .DIB) that you'd like to be compiled into the VBX
With RC-EDIT you can roam your harddisk(s) and select all the
bitmaps you'd like to use in your program. After you've specified
the bitmaps you want to use, type a name for the VBX (8 characters
at most, 'LIBRARY' for example) and press the 'Start'-button. the
RC-EDIT program will now perform the following steps:
- The CONTAINR.VBX will be copied to the name you've specified
(LIBRARY.VBX for example)
- The CtlName of the VBX will be patched in the VBX and will
become the name of the VBX with 'Pics' appended to it
(LibraryPics for example)
- All the bitmaps and dibs you've choosen will be compiled into
the VBX.
2. When the RC-EDIT program is done, you should have a new VBX that
has all the bitmaps in it. You can add this VBX to your Visual Basic
project and add an instance of it to a form in your project.
3. Now it's time to retrieve the images from the VBX. You can do this
by setting the VBX'es ResourceNumber property to anything but zero.
This causes the VBX to read the picture with that number to be loaded
and set to the Picture property of the VBX. Now you can use the Picture
property to copy the picture to another control:
LibraryPics.ResourceNumber = 1
Picture1.Picture = LibraryPics.Picture
After that you free the picture (to avoid it taking up valuable memory),
by setting to Picture property to (none):
LibraryPics.Picture = LoadPicture()
The RC-EDIT program also creates a Visual Basic BAS-file that includes
named constants for all the pictures inside the VBX.
4. That's all there is to it.
A few remarks:
- You can use as many Container VBX'es in your application as you like.
Since the name of the control is changed by RC-EDIT for each new control
you create with it, there is no conflict in windows library-names and
visual-basic control-names.
- The Container VBX and the RC-EDIT, RC and RCPP programs must be in the
same directory. RC-EDIT does no error checking whatsoever, so make sure
they're all there.
- The container VBX is free. You may use it in any program you like, but:
- you use the VBX on your own risk. In no case shall SheAr software be
liable for any damages that may result from using this VBX. If you use
this VBX you agree to be bound by this notice.
- if you like to give away copies of the VBX to friends, give them the
full archive, including this notice.
If you have any questions about this VBX or if there's anything else you'd
like to know, don't hesitate to contact me through e-mail:
vbx_dev@shear.iaf.nl
Arjen Broeze